package com.itlaobing.annotation.dao.impl;

import com.itlaobing.annotation.dao.AopStudentDao;
import com.itlaobing.annotation.entity.Student;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;
import java.util.logging.Logger;

@Repository("aopStudentDaoImpl")
public class AopStudentDaoImpl implements AopStudentDao {

    private List<Student> database = new ArrayList<Student>();

    private Logger logger = Logger.getLogger( this.getClass().getName() );

    @Override
    public boolean save(Student stu) {
        logger.info( "保存" );
        return database.add(stu);
    }
}
